package com.entmanage.base.oa.mapper;

import java.util.List;
import com.entmanage.base.oa.domain.OaOvertimeApply;
import io.lettuce.core.dynamic.annotation.Param;

/**
 * 加班申请Mapper接口
 * 
 * @author lsq
 * @date 2025-09-26
 */
public interface OaOvertimeApplyMapper 
{
    /**
     * 查询加班申请
     * 
     * @param id 加班申请主键
     * @return 加班申请
     */
    public OaOvertimeApply selectOaOvertimeApplyById(Long id);

    /**
     * 查询加班申请列表
     * 
     * @param oaOvertimeApply 加班申请
     * @return 加班申请集合
     */
    public List<OaOvertimeApply> selectOaOvertimeApplyList(OaOvertimeApply oaOvertimeApply);

    /**
     * 新增加班申请
     * 
     * @param oaOvertimeApply 加班申请
     * @return 结果
     */
    public int insertOaOvertimeApply(OaOvertimeApply oaOvertimeApply);

    /**
     * 修改加班申请
     * 
     * @param oaOvertimeApply 加班申请
     * @return 结果
     */
    public int updateOaOvertimeApply(OaOvertimeApply oaOvertimeApply);

    /**
     * 删除加班申请
     * 
     * @param id 加班申请主键
     * @return 结果
     */
    public int deleteOaOvertimeApplyById(Long id);

    /**
     * 批量删除加班申请
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOaOvertimeApplyByIds(Long[] ids);

    List<OaOvertimeApply> selectByApproverId(@Param("approverId") Long approverId);

    List<OaOvertimeApply> selectByCcId(@Param("ccId") Long currentUserId);
}
